﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="EditorTest.aspx.cs" Inherits="GrandMan.EditorTest" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Editor Test</title>
    <link href="Scripts/ueditor/themes/default/ueditor.css" rel="Stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <div id='editor'></div>
    </div>
    </form>
    <script src="http://code.jquery.com/jquery-1.7.min.js" type="text/javascript"></script>
    <script src="Scripts/ueditor/editor_config.js" type="text/javascript"></script>
    <script src="Scripts/ueditor/editor_ui_all_min.js" type="text/javascript"></script>
    <script type="text/javascript">
        $(document).ready(function () {

            $('#editor').hide();

            var editor = new baidu.editor.ui.Editor({
                UEDITOR_HOME_URL: 'Scripts/ueditor/',
                iframeCssUrl: 'Scripts/ueditor/themes/default/iframe.css',
                autoClearinitialContent:true,
                initialContent: '<span style="color:#ccc">请输入内容</span>',
                elementPathEnabled:false,
                autoHeightEnabled:true,
                enterTag:"br"
            });

            editor.render('editor');

            $('#editor').show();
        });
    </script>
</body>
</html>
